/**
	The Minerva Project, DAG Scheduling Tools
	Copyright (C) 2006 Florin Pop & Stefan Bucur

	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
 */
package ro.pub.cs.minerva.scheduler;

import ro.pub.cs.minerva.resource.Resource;
import ro.pub.cs.minerva.task.*;

/**
 * @author Stefan Bucur
 *
 */

public class TaskMapping{
	private Resource resource;
	
	private Task task;
	
	private long startTime;
	
	private TaskMappingStatus status;
	
	public TaskMapping(Resource resource, Task task) {
		this.resource = resource;
		this.task = task;
		
		status = TaskMappingStatus.PENDING;
	}
	
	public Task getTask() {
		return task;
	}
	
	public Resource getResource() {
		return resource;
	}
	
	public long getStartTime() {
		return startTime;
	}
	
	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
	
	public TaskMappingStatus getStatus() {
		return status;
	}
	
	public void setStatus(TaskMappingStatus status) {
		this.status = status;
	}
}
